/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, rgba(37, 145, 251, 0.1) 0%, rgba(16, 37, 60, 0.1) 90%);
}

.container {
    max-width: 600px;
    margin: 50px auto;
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #4dabf7;
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow: 0 0 10px rgba(77, 171, 247, 0.3);
    margin-bottom: 10px;
}

/* 表单样式 */
.todo-form {
    display: flex;
    margin-bottom: 25px;
    gap: 10px;
}

#todo-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2d2d2d;
    color: #e0e0e0;
    transition: all 0.3s;
}

#todo-input:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 10px rgba(77, 171, 247, 0.3);
}

#priority-select {
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2d2d2d;
    color: #e0e0e0;
}

#due-date-input {
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2d2d2d;
    color: #e0e0e0;
}

#add-button {
    padding: 12px 20px;
    background-color: #4dabf7;
    color: #121212;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

#add-button:hover {
    background-color: #7bbef7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(77, 171, 247, 0.4);
}

/* 过滤器样式 */
.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 18px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #e0e0e0;
    font-weight: 500;
}

.filter-btn.active {
    background-color: #4dabf7;
    color: #121212;
    border-color: #4dabf7;
    box-shadow: 0 4px 10px rgba(77, 171, 247, 0.3);
}

.filter-btn:hover:not(.active) {
    background-color: #3a3a3a;
}

/* 列表样式 */
#todo-list {
    list-style-type: none;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
    transition: all 0.3s;
    background-color: #252525;
    border-radius: 8px;
    margin-bottom: 10px;
}

.todo-item:hover {
    background-color: #2d2d2d;
    transform: translateX(5px);
}

.todo-item input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.3);
    accent-color: #4dabf7;
}

.todo-text {
    flex: 1;
    font-size: 16px;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #777;
}

.delete-btn {
    padding: 8px 12px;
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

/* 优先级标签样式 */
.priority-tag {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-left: 10px;
    color: white;
    font-weight: 600;
}

.priority-low {
    background-color: #43a047;
}

.priority-medium {
    background-color: #f57c00;
}

.priority-high {
    background-color: #e53935;
}

/* 截止日期样式 */
.due-date {
    font-size: 12px;
    color: #9e9e9e;
    margin-left: auto;
    margin-right: 10px;
}

/* 页脚样式 */
footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #9e9e9e;
}

/* 任务统计样式 */
.task-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(77, 171, 247, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(77, 171, 247, 0.3);
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #4dabf7;
    text-shadow: 0 0 5px rgba(77, 171, 247, 0.5);
    transition: all 0.3s;
}

.stat-number:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(77, 171, 247, 0.8);
}

.progress-container {
    width: 100%;
    height: 12px;
    background-color: #2d2d2d;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4dabf7;
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* 响应式设计 */
@media (max-width: 500px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    .todo-form {
        flex-direction: column;
    }

    #todo-input, #priority-select, #due-date-input, #add-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        margin-bottom: 8px;
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.todo-item {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 星座运势样式 */
.constellation-container {
    margin: 20px 0;
    text-align: center;
}

#constellation-select {
    padding: 10px 15px;
    margin: 0 10px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #2d2d2d;
    color: #e0e0e0;
    font-size: 14px;
}

#get-horoscope-btn {
    padding: 10px 18px;
    background-color: #4dabf7;
    color: #121212;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

#get-horoscope-btn:hover {
    background-color: #7bbef7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(77, 171, 247, 0.4);
}

.horoscope-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #252525;
    border-radius: 10px;
    border: 1px solid #333;
    color: #e0e0e0;
    display: none;
}

.horoscope-result.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

.horoscope-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.horoscope-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid #4dabf7;
}

.horoscope-title {
    flex: 1;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #4dabf7;
}

.horoscope-lucky {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.horoscope-lucky-item {
    text-align: center;
}

.horoscope-lucky-label {
    font-size: 12px;
    color: #9e9e9e;
}

.horoscope-lucky-value {
    font-size: 14px;
    font-weight: 600;
    color: #4dabf7;
}

.horoscope-fortunes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.horoscope-fortune-item {
    background-color: #2d2d2d;
    padding: 12px;
    border-radius: 8px;
}

.horoscope-fortune-label {
    font-size: 12px;
    color: #9e9e9e;
    margin-bottom: 5px;
}

.horoscope-fortune-value {
    font-size: 14px;
}

.fortune-4 {
    color: #4dabf7;
}

.fortune-3 {
    color: #43a047;
}

.fortune-2 {
    color: #f57c00;
}

.fortune-1 {
    color: #e53935;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}